﻿@model IEnumerable<PhotoGallery.Models.AlbumInfoModel>

@{
    ViewData["Title"] = "相册管理";
}

<h2>@ViewData["Title"]</h2>

<p>
    <a asp-action="Create">新增相册</a>
</p>
<table class="table">
    <thead>
        <tr>
                <th>
                    @Html.DisplayNameFor(model => model.Id)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Name)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Description)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.AlbumType)
                </th>
              
                <th>
                    @Html.DisplayNameFor(model => model.IsPublic)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Password)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.CreateDate)
                </th>
                <th>
                    @Html.DisplayNameFor(model => model.Owner)
                </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
@foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Id)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Description)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AlbumType)
            </td>
           
            
            <td>
                @Html.DisplayFor(modelItem => item.IsPublic)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Password)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreateDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Owner)
            </td>
            <td>
                @Html.ActionLink("编辑", "Edit", new {  id=item.Id  }) |
                @Html.ActionLink("详情", "Details", new { id=item.Id  }) |
                @Html.ActionLink("删除", "Delete", new { id=item.Id  })
            </td>
        </tr>
}
    </tbody>
</table>
